$OpenBSD: patch-configure_in,v 1.7 2013/03/27 17:58:44 ajacoutot Exp $
--- configure.in.orig	Thu Jul  1 15:57:01 2010
+++ configure.in	Wed Mar 27 10:46:28 2013
@@ -280,7 +280,18 @@ AC_HEADER_STDC
 AC_CHECK_HEADERS(fcntl.h unistd.h sys/endian.h endian.h machine/endian.h sys/machine.h sys/isa_defs.h sys/poll.h)
 AC_CHECK_HEADERS(stddef.h wchar.h wcstr.h wctype.h machine/types.h)
 AC_CHECK_HEADERS(netinet/in.h netinet/tcp.h sys/un.h)
-AC_CHECK_HEADERS(arpa/nameser.h resolv.h)
+AC_CHECK_HEADERS(arpa/nameser.h)
+AC_CHECK_HEADERS(resolv.h, [], [], [
+#if HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#if HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#if HAVE_ARPA_NAMESER_H
+#include <arpa/nameser.h>
+#endif
+])
 dnl AC_CHECK_HEADERS(linux/irda.h)
 
 dnl Checks for library functions.
